<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ page import="org.apache.jasper.tagplugins.jstl.core.ForEach"%>
<%@ page import="bean.MailBEAN" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Game</title>
<link href="css/tcss.css" rel="stylesheet" type="text/css" media="all">
</head>
<body>
	<div class="container">
		<div class="header">
			<img src="images/header.jpg"></img>
		</div>
		<div class="topMenu">
			<%@ include file="infoBar.jsp"%>
		</div>
		<div class="sideMenu">
			<%@ include file="menu.jsp"%>
		</div>
		<div class="center">
			<% MailBEAN mail = (MailBEAN) request.getAttribute( "mail" ); %>
			<center>
				<table>
					<tr>
						<td style="width: 100px;">From:</td>
						<td style="width: 500px;"><% out.print( mail.getSender() ); %></td>
					</tr>
					<tr>
						<td>Title:</td>
						<td><% out.print( mail.getTitle() ); %></td>
					</tr>
					<tr>
						<td>Date:</td>
						<td><% out.print( mail.getDateTimeConverted() ); %></td>
					</tr>
					<tr>
						<td> </td>
						<td><% out.print( mail.getContent() ); %></td>
					</tr>
					<form name="anwserMail" action="Mail" method="post">
						<input type="hidden" name="action" value="replyMail">
						<input type="hidden" name="oldMailID" value="<% out.print( mail.getMailID( ) );%>">
						<tr>
							<td>Reply:</td>
							<td><textarea name="textArea" style="background-color: #C0C0C0" rows="10" cols="50"></textarea> </td>
						</tr>
						<tr>
							<td> </td>
							<td> <input type="submit" name="submit" value="Send"> </td>
						</tr>
					</form>
					<form name="removeMail" action="Mail" method="post">
						<input type="hidden" name="action" value="removeMail">
						<input type="hidden" name="oldMailID" value="<% out.print( mail.getMailID( ) );%>">
						<tr>
							<td> </td>
							<td> <input type="submit" name="submit" value="Delete"> </td>
						</tr>
					</form>
				</table>
			</center>
		</div>
	</div>
</body>
</html>